//
//  NSFileManager+TYExtendsion.m
//  TYToolKit
//
//  Created by dev_tianyu on 16/8/6.
//  Copyright © 2016年 dev_tianyu. All rights reserved.
//

#import "NSFileManager+TYExtendsion.h"

@implementation NSFileManager (TYExtendsion)

/**
 *  获取document文件夹路径
 */
+ (NSString *)documentPath {
    return [self pathForDir:NSDocumentDirectory];
}


+ (NSString * )pathForDir:(NSSearchPathDirectory) directory {
    return NSSearchPathForDirectoriesInDomains(directory, NSUserDomainMask, YES).firstObject;
}
@end
